*{
    padding: 0;
    margin: 0;
}
body{
    width: 100%;
    height: 100vh;
}

/*导航栏css*/
header {
    background-color: #333; /* 导航栏背景颜色 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 100; /* 用于将导航栏置于顶部 */
}
/* 导航链接样式 */
header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
header li {
    margin: 0 30px;
}
header a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}
/* 内容区域样式 */
main {
    margin-top: 30px; /* 让内容区域在导航栏下面 */
    padding: 20px;
}
#ownerbtn{
    width: 40px;
    height: 30px;
    border-radius: 5px;
    background-image: linear-gradient(to right bottom,#30cfd0,#CCFF00);
}

/*主页的轮播图展示效果*/
.container{
    margin-top: 60px;
    width: 100%;
    height: 592px;
    position: relative;
    z-index: 10;
}
/* 容器四边的渐变黑 */
.shades{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    /* 元素不对指针事件做出反应 */
    pointer-events: none;
    z-index: 100;
}
.shades .left{
    width: 160px;
    height: 100%;
    background: linear-gradient(to left,transparent,#16161a);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 100;
}
.shades .right{
    width: 160px;
    height: 100%;
    background: linear-gradient(to right,transparent,#16161a);
    position: absolute;
    right: 0;
    top: 0;
    z-index: 100;
}
.shades .top{
    width: 100%;
    height: 90px;
    background: linear-gradient(to top,transparent,#16161a);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 100;
}
.shades .bottom{
    width: 100%;
    height: 220px;
    background: linear-gradient(to bottom,transparent,#16161a);
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 100;
}
.imgs{
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.imgs img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
}
.imgs a{
    opacity: 0;
    transition: 0.2s;
}
.imgs a.active{
    opacity: 1;
}
.titles{
    width: 207px;
    height: 100px;
    position: absolute;
    top: 13%;
    right: 5%;
    background: linear-gradient(to bottom,transparent,#16161a 22%,#16161a 81%,transparent);
}
.titles a{
    display: block;
    color: white;
    text-align: center;
    text-decoration: none;
    width: 100%;
    background: white;
}
.titles .title2{
    font-size: 12px;
    margin-top: 8px;
    font-weight: normal;
    /* 副标题默认隐藏 */
    display: none;
}
/* 标题活动态 */
.titles a.active{
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(to bottom,transparent,#16161a 22%,#16161a 81%,transparent);
}
.titles a.active .title2{
    /* 活动态下副标题显示 */
    display: block;
}

.shopCar{
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.head{
    width: 50px;
    height: 50px;
}
.header img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}
.lunbo {
    position: relative;
    overflow: hidden;
}

#lunbo {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

#lunbo div {
    flex: 0 0 100%;
}

.left, .right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    color: white;
    background-color: black;
    padding: 10px;
    border: none;
    outline: none;
}

.left {
    left: 10px;
}

.right {
    right: 10px;
}

.admin-link {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

